﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OUPicker.aspx.cs" Inherits="TreeViewPicker.OUPicker" %>
<%@ Register TagPrefix="ctl" TagName="OrganizationUnitPicker" Src="OrganizationUnitPicker.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    	<%-- JQuery --%>
		<script type="text/javascript" src="<%= ResolveClientUrl("~/scripts/jquery-1.4.3.min.js") %>"></script>
		<script type="text/javascript" src="<%= ResolveClientUrl("~/scripts/jquery-ui-1.8.5.custom.min.js") %>"></script>
		<script type="text/javascript" src="<%= ResolveClientUrl("~/scripts/json2.js") %>"></script>
	
		<%-- jstree --%>
		<script type="text/javascript" src="<%= ResolveClientUrl("~/scripts/jquery.cookie.js") %>"></script>
	    <script type="text/javascript" src="<%= ResolveClientUrl("~/scripts/jquery.hotkeys.js") %>"></script>
	    <script type="text/javascript" src="<%= ResolveClientUrl("~/scripts/jquery.jstree.js") %>"></script>

           <link href="<%= ResolveClientUrl("~/css/custom-theme/jquery-ui.css") %>" rel="stylesheet"
        type="text/css" media="screen,projector" />

    <script type="text/javascript">
       
        var lookUpOUButton = '#Button1';
        $(function () {
            $(lookUpOUButton).click(OpenDialog);
        });


        function OpenDialog() {
            $('#OrganizationalUnitPickerDialog').dialog('open');
            return false;
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    	<ctl:OrganizationUnitPicker ID="OrganizationalUnitPickerDialog" runat="server"  TextField = "#TextBox1" />
        <asp:Button ID="Button1" runat="server" Text="Choose"  />
        <asp:TextBox ID="TextBox1" runat="server" Width="200px" ReadOnly ="true" ></asp:TextBox>
    </div>
    </form>
</body>
</html>
